var http = require('http')
var URL  = require('url')
var serve = http.createServer()
serve.on('request',function (req,res) {
    var {parthName:url,query} = URL.parse(req.url,true)
    // if (url === 'getName') {
    //     // var stringDate = `${query.callBack()}`
    //     // res.end(stringDate)
    //     res.write("开启服务器");
    //     res.end()
    // }
    res.write("开启服务器");
    res.end()
})
serve.listen(3000,function(){
    console.log('已经启动服务器：http://127.0.0.1:3000')
})